import request from '@/utils/request'

// 查询库位列表
export function listStorehouseBin(query) {
  return request({
    url: 'wh/storehouseBin/list',
    method: 'get',
    params: query
  })
}

// 查询库位详细
export function getStorehouseBin(id) {
  return request({
    url: 'wh/storehouseBin/' + id,
    method: 'get'
  })
}

// 新增库位
export function addStorehouseBin(data) {
  return request({
    url: 'wh/storehouseBin',
    method: 'post',
    data: data
  })
}

// 修改库位
export function updateStorehouseBin(data) {
  return request({
    url: 'wh/storehouseBin',
    method: 'put',
    data: data
  })
}

// 删除库位
export function delStorehouseBin(id) {
  return request({
    url: 'wh/storehouseBin/' + id,
    method: 'delete'
  })
}
